package com.cskaoyan.mapper;

import com.cskaoyan.bean.MallOrder;
import com.cskaoyan.bean.MallOrderExample;
import java.util.List;

import com.cskaoyan.model.vo.order.OrderDetailVo;
import com.cskaoyan.model.vo.order.UserOfOrderDetailVo;
import com.cskaoyan.model.vo.user.wx.index.MallOrderAndOrderGoodsById;
import com.cskaoyan.model.vo.wxorder.detail.DetailUserVO;
import org.apache.ibatis.annotations.Param;

public interface MallOrderMapper {
    long countByExample(MallOrderExample example);

    int deleteByExample(MallOrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MallOrder record);

    int insertSelective(MallOrder record);

    List<MallOrder> selectByExample(MallOrderExample example);

    MallOrder selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MallOrder record, @Param("example") MallOrderExample example);

    int updateByExample(@Param("record") MallOrder record, @Param("example") MallOrderExample example);

    int updateByPrimaryKeySelective(MallOrder record);

    int updateByPrimaryKey(MallOrder record);

    OrderDetailVo orderDetail(Integer id);

    UserOfOrderDetailVo selectUser(Integer userId);


    int updateToCancel(Integer orderId);

    int updateToConfirm(Integer orderId);

    int updateToRefund(Integer orderId);

    List<MallOrderAndOrderGoodsById> getIndex2(Integer id);

    int updateComments(Integer orderId);

    String selectMaxOrderSn();
}